﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text; 

namespace VideoRentalShop.Model
{
    public class MovieDbContext : DbContext
    {
        public MovieDbContext()
        {
            Database.SetInitializer<MovieDbContext>(new MovieDbInitializer());
        }


        public DbSet<Client> Clients { get; set; }
        public DbSet<Genre> Genres { get; set; }
        public DbSet<GenreDetails> GenreDetails { get; set; }
        public DbSet<Movie> Movies { get; set; }
        public DbSet<Order> Orders { get; set; }
        public DbSet<OrderDetails> OrderDetails { get; set; }
    }
}
